const B = {
  namespaced: true,
  state: {
    count: 3
  },
  mutations: {
    add(state) {
      state.count++;
    },
    sub(state) {
      state.count--;
    }
  },
  actions: {
    subClick({commit}) {
      setTimeout(() => {
        commit('sub')
      }, 2000)
    }
  },
  getters: {
    getCountB: state => state.count,
  }
};

export default B

